package com.lct.loop;

public class ForDemo2 {
    public static void main(String[] args) {
        int sum = 0;
        for (int i = 0; i < 6; i++) {
            sum += i;
        }
        System.out.println("1-5的所有的和为" + sum);
        System.out.println("此节已掌握");
    }
}
